import React, {Component} from 'react';
import SimpleHoc from "../../components/SimpleHoc";

class HigherComponent extends Component {
    constructor(props) {
        super(props)
    }

    onClick = () => {
        alert(11);
        let {onClick} = this.props;
        console.log({...this.props});
        onClick();
    };

    render() {
        return (
            <div onClick={this.onClick}>
                111
            </div>
        );
    }
}

export default SimpleHoc(HigherComponent);
